# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=entr
pkgver=5.2
pkgrel=0
pkgdesc="Event Notify Test Runner: Run arbitrary commands when files change"
url="https://eradman.com/entrproject"
arch="all"
license="ISC"
subpackages="$pkgname-doc"
makedepends="vim mercurial file util-linux"
checkdepends="bash tmux"
source="https://eradman.com/entrproject/code/entr-$pkgver.tar.gz"

build() {
	./configure
	make
}

check() {
	make test

	# FIXME: The tmux invocation in the functional tests blocks the builders
	# make regress
}

package() {
	PREFIX="$pkgdir/usr" make install
}

sha512sums="
b12310b6695f0b3d3d830b651dd182ddf2321aad38f569066cc2e5b17570070e48eb4900725c88c1d31a8ff71099aba78fb7508ad60706265cbdf8f29257eaaa  entr-5.2.tar.gz
"
